{% extends "news/base.html" %}
{% block title %}<title>Articles for {{ year }}</title>{% endblock %}
{% block content %}
<h1>Articles for {{ year }}</h1>
{% if message %}
{{ message.msg }}
{% endif %}
{% for article in article_list %}
<p>{{ article.headline }}</p>
<p>By {{ article.reporter.full_name }}</p>
<p>Published {{ article.pub_date|date:"F j, Y" }}</p>
{% endfor %}
<a href="{% url 'news:uploadfile' %}">upload file</a>
<a href="{% url 'news:login' %}">login</a>
<a href="{% url 'news:logout' %}">logout</a>
{% endblock %}
